package com.ctshk.rpc.tour.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 旅行团首页目录三级分类DTO
 *
 * @author 廖胤松
 * @create 2021-05-17
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "TripHomeH5CatalogDTO", description = "旅行团H5首页分类对象")
public class TripHomeH5CatalogDTO implements Serializable {

    @ApiModelProperty(value = "分类id")
    private Long id;

    @ApiModelProperty(value = "分类名称")
    private String name;

    @ApiModelProperty(value = "子分类列表")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<TripHomeH5CatalogDTO> catalogs;

}
